package com.mijie.homi.admin.dao.topic;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.mijie.core.IBatisDao;
import com.mijie.homi.common.domain.topic.TopicType;

@Repository
public class TopicTypeDao extends IBatisDao{

	public int addTopicType(TopicType type){
		return this.insert("addTopicType", type);
	}
	
	public int updateTopicType(TopicType type){
		return this.update("updateTopicType", type);
	}
	
	public TopicType getTopicType(int id){
		return this.selectOne("getTopicType", id);
	}
	
	public List<TopicType> listTopicType(){
		return this.selectList("listTopicType");
	}
}
